// This card is Village. It is a action card that allow the user to Draw 1 extra card and allows the player to have 2 actions instead of 1
#include "dominion.h"
#include <stdio.h>
#include "rngs.h"
#include <assert.h>
#include <stdlib.h>
#include <math.h>

int main(int argc, char** argv){
    struct gameState GameS;

    int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,
        sea_hag, baron, great_hall};
	int c;
	int numPlayers = 2;
	int seed = 1000;
	int drawnTreasure = rand() % 2;
	


	int numActions = rand() % 4;
	int i=0;
	int cardnum;
	int action;
	int cardcount;
	
	while(i< 50){
	c =initializeGame(numPlayers, k, seed, &GameS);
	//random value generator:
	randact(&GameS);
	randcardcount(&GameS);
	//index saver
	action= actionc(&GameS);
	cardcount=cc(&GameS);
	//use card
	cardEffect(village,0,0,0,&GameS,0,0);
	printf("\n%d,%d\n%d,%d\n",action,cardcount,actionc(&GameS),cc(&GameS));
	assert(action=actionc(&GameS)+2);
	assert(cardcount=cc(&GameS));
	i++;
	}
	printf("pass the test!\n");

}
